package com.kordar.auth;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;

@ConfigurationProperties(prefix = "kordar.auth")
public class AuthProperties {
    private Map<String, String> filterChain = new HashMap<>();
    private String unauthorizedUrl = "/login";
    private String loginUrl = "/login";
    private String successUrl = "/";

    public Map<String, String> getFilterChain() {
        return filterChain;
    }

    public void setFilterChain(Map<String, String> filterChain) {
        this.filterChain = filterChain;
    }

    public String getUnauthorizedUrl() {
        return unauthorizedUrl;
    }

    public void setUnauthorizedUrl(String unauthorizedUrl) {
        this.unauthorizedUrl = unauthorizedUrl;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getSuccessUrl() {
        return successUrl;
    }

    public void setSuccessUrl(String successUrl) {
        this.successUrl = successUrl;
    }
}
